package com.lvy.hczn.front.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lvy.hczn.front.system.domain.business.SaleOrderDetail;
import com.lvy.hczn.front.system.domain.business.SortTaskDetail;
import com.lvy.hczn.front.system.domain.business.SpuSortRecord;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SpuSortRecordMapper extends BaseMapper<SpuSortRecord> {

    /**
     * 分拣点击缺货时，过滤已临期的商品
     *
     * @param sortTaskDetailInfo
     * @return
     */
    SpuSortRecord selectSortFrmLossBySpu(@Param(value = "sortTaskDetailInfo") SortTaskDetail sortTaskDetailInfo);

    /**
     * 退货入库统计列表（根据是否大件商品分组）
     *
     * @param sortRecord
     * @return
     * @author yw
     * @date 2023-11-03 10:17:47
     */
    List<SpuSortRecord> untreatedCount(@Param(value = "sortRecord") SpuSortRecord sortRecord);

    List<SpuSortRecord> selectListInfo(@Param(value = "sortRecord") SpuSortRecord sortRecord);

    SpuSortRecord selectObjectInfo(@Param(value = "sortRecord") SpuSortRecord sortRecord);

    SpuSortRecord selectByRecodeCode(@Param(value = "sortRecord") SpuSortRecord sortRecord);
}
